<!DOCTYPE html>
<html>
<head>
	<title>列表页</title>、
	<link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css" />
</head>
<body>
		<nav class="navbar navbar-inverse">
		<div class="container">
			<div class="navbar-header">
				<a href="#" class="navbar-brand">博客</a>
			</div>
			<div id="navbar" class="collapse navbar-collapse">
				<ul class="nav navbar-nav">
					<li>
						<a href="#">列表页</a>
					</li>
					<li><a href="#">关于我们</a></li>
				</ul>
			</div>
		</div>
	</nav>

	<div class="container">
		<h1>列表页</h1>
		<table class="table table-tripped table-bordered">
			<tr>
				<th>序号</th>
				<th>用户名</th>
				<th>年龄</th>
				<th>性别</th>
				<th>编辑</th>
			</tr>

			@foreach($list as $key=>$val)
			<tr>
				<td>{{$val->id}}</td>
				<td>{{$val->username}}</td>
				<td>{{$val->age}}</td>
				<td>男</td>
				<td>
					<a href="" class="btn btn-success">修改</a>
					<a href="" class="btn btn-danger">删除</a>
				</td>
			</tr>
			@endforeach
		
			
		</table>
	</div>

</body>
</html>